package com.zpark.cloud.alibaba.mapper;

import com.zpark.cloud.alibaba.entity.Account;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * 账户持久层接口
 */
public interface IAccountMapper extends Mapper<Account> {

    // 根据用户idchax账户数据
    @Select("SELECT id, user_id, total, used, residue FROM t_account WHERE user_id=#{uid}")
    Account selectByUserId(Long uid);
}
